// import params from "/@/utils/params"
import request from '/@/utils/request';

export function fetchList(query?: Object) {
	return request({
		url: '/blood/bloodxCustomerBlood/page',
		method: 'get',
		params: query,
	});
}

export function addObj(obj?: Object) {
	return request({
		url: '/blood/bloodxCustomerBlood',
		method: 'post',
		data: obj,
	});
}

export function getObj(id?: string) {
	return request({
		url: '/blood/bloodxCustomerBlood/' + id,
		method: 'get',
	});
}

export function delObjs(ids?: Object) {
	return request({
		url: '/blood/bloodxCustomerBlood',
		method: 'delete',
		data: ids,
	});
}

export function putObj(obj?: Object) {
	return request({
		url: '/blood/bloodxCustomerBlood',
		method: 'put',
		data: obj,
	});
}

// get  /admin/bloodxCustomerBlood/getAvgValue
export function getAvgValue(params?: Object) {
	return request({
		url: '/blood/bloodxCustomerBlood/getAvgValue',
		method: 'post',
		params: params,
	});
}

export function getexaminlist(query?: Object) {
	return request({
		url: '/blood/bloodxDockerCustomer/page',
		method: 'post',
		params: query,
	});
}

export function getdetaillist(query?: Object) {
	return request({
		url: '/blood/bloodxPhysicalExaminationData/list',
		method: 'get',
		params: query,
	});
}
